/*
 * Mutex.cpp
 *
 *  Created on: 30/04/2011
 *      Author: dela
 */

#include "Mutex.h"

/**
 *
 */
Mutex::Mutex() {
	pthread_mutex_init(&mutex, NULL);
}

/**
 *
 */
Mutex::~Mutex() {
	pthread_mutex_destroy(&mutex);
}

/**
 *
 */
void Mutex::lock() {
	pthread_mutex_lock(&mutex);
}

/**
 *
 */
void Mutex::unLock() {
	pthread_mutex_unlock(&mutex);
}
